package net.peelmeagrape.hibernate.collections;

import net.peelmeagrape.hibernate.xmlgen.GroupingAnnotation;

import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
 * Specify the key of a {@link H8Map}.
 */
@Retention(RUNTIME)
@GroupingAnnotation
public @interface MapKey
{
    SimpleMapKey[] mapKey() default {};
    CompositeMapKey[] compositeKey() default {};
    MapKeyManyToMany[] mtmKey() default {};
    MapKeyManyToAny[] mtaKey() default {};
    Index[] index() default {};
}
